<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="https://cdn.bootcdn.net/ajax/libs/moment.js/2.29.4/moment.min.js"></script>
    <!-- <script src="../../js/tool.js"></script> -->
    <script>
        let today = moment();
        console.log(today);

        console.log(today.format("YYYY-MM-DD HH:mm:ss"));
        console.log(today.format("YYYY年MM月DD日 H时m分s秒"));

        today = moment("2022-11-10 13:14:15", "YYYY-MM-DD HH:mm:ss");
        console.log(today);

        let nextDay = moment().add(10, 'days');
        console.log(nextDay.format("YYYY-MM-DD HH:mm:ss"));


    </script>
</body>

</html>